<table class="table table-striped table-bordered">
    <tbody>
    <tr>
        <td colspan="6" class="text-center"><strong><h3>{:__('Basic information')}</h3></strong></td>
    </tr>
    <tr>
        <td>{:__('Id')}</td>
        <td colspan="2">{$row.id|htmlentities}</td>
        <td>{:__('Order_no')}</td>
        <td colspan="2">{$row.order_no|htmlentities}</td>
    </tr>
    <tr>
        <td>{:__('Weight_type')}</td>
        <td>{$row.weight_type_text|htmlentities}</td>
        <td>{:__('Region.name')}</td>
        <td>{$row.region.name|htmlentities|default='-'}</td>
        <td>{:__('Status')}</td>
        <td>{$row.status_text|htmlentities}</td>
    </tr>
    <tr>
        <td>{:__('Createtime')}</td>
        <td>{$row.createtime_text|htmlentities}</td>
        <td>{:__('Accepttime')}</td>
        <td>{$row.accepttime?$row.accepttime_text:'-'}</td>
        <td>{:__('Successtime')}</td>
        <td>{$row.successtime?$row.successtime_text:'-'}</td>
    </tr>
    <tr>
        <td>{:__('Remarks')}</td>
        <td colspan="5" class="text-red">{$row.remarks|htmlentities|default=__('Nothing')}</td>
    </tr>
    {if !empty($row['appraise']['evaluate'])}
    <tr>
        <td>{:__('Comment content')}</td>
        <td colspan="5" class="text-red">{$row.appraise.evaluate|htmlentities|default=__('Nothing')}</td>
    </tr>
    {/if}
    <tr>
        <td colspan="6" class="text-center"><strong><h3>{:__('User Info')}</h3></strong></td>
    </tr>
    <tr>
        <td>{:__('Order user')}</td>
        <td colspan="2">{$row.username|htmlentities}</td>
        <td>{:__('Recycler_name')}</td>
        <td colspan="2">{$row.recycler_name|htmlentities}</td>
    </tr>
    <tr>
        <td>{:__('Mobile')}</td>
        <td colspan="2">{$row.mobile|htmlentities}</td>
        <td>{:__('Recycler_mobile')}</td>
        <td colspan="2">{$row.recycler_mobile|htmlentities}</td>
    </tr>
    <tr>
        <td>{:__('Address')}</td>
        <td colspan="5">{$row.address|htmlentities}</td>
    </tr>
    {if $row.details}
    <tr>
        <td colspan="6" class="text-center"><strong><h3>{:__('Order details')}</h3></strong></td>
    </tr>
    <tr>
        <th class="text-center" colspan="2">{:__('Details name')}</th>
        <th class="text-center">{:__('Unit price')}</th>
        <th class="text-center">{:__('Quantity')}</th>
        <th class="text-center">{:__('Integral')}</th>
        <th class="text-center">{:__('Total price')}</th>
    </tr>
    {volist name="$row.details" id="vo"}
        <tr>
            <td class="text-center" colspan="2">{$vo.title|htmlentities}</td>
            <td class="text-center">{$vo.price|htmlentities} / {$vo.unit|htmlentities}</td>
            <td class="text-center">{$vo.number|htmlentities} {$vo.unit|htmlentities}</td>
            <td class="text-right">{$vo.integral|htmlentities}</td>
            <td class="text-right">{$vo.total_price|htmlentities}</td>
        </tr>
    {/volist}
    <tr>
        <th colspan="4">{:__('Total')}</th>
        <th class="text-right">{:array_sum(array_column($row['details'], 'integral'))}</th>
        <th class="text-right">{:array_sum(array_column($row['details'], 'total_price'))}</th>
    </tr>
    {/if}
    </tbody>
</table>
